package com.kyub.spring.gears.test.crud;

/**
 * Created by IntelliJ IDEA.
 * User: sreghenzi
 * Date: 20-ago-2009
 * Time: 17.17.56
 * To change this template use File | Settings | File Templates.
 */
public class MockPojo {

    private String name;

    public MockPojo(String s) {
        name =s;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MockPojo)) return false;

        MockPojo mockPojo = (MockPojo) o;

        if (!name.equals(mockPojo.name)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return name.hashCode();
    }

    @Override
    public String toString() {
        return "MockPojo{" +
                "name='" + name + '\'' +
                '}';
    }
}
